package com.superc.notebook;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

import com.superc.model.notebook.NotebookDBHelper;

public class BootReceiver  extends BroadcastReceiver{
	static final String ACTION = "android.intent.action.BOOT_COMPLETED";
	@Override
	public void onReceive(Context context, Intent intent) {
		if (intent.getAction().equals(ACTION)){
			NotebookDBHelper.loadConfig(context);
			if(NotebookDBHelper.isStartUpAtBoot()){
				NotebookService.startService(context,false);
			}
		}
	}

}
